package com.hr.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter;

import java.text.SimpleDateFormat;


@Controller
public class ControllerTest1 {
    @RequestMapping("/t2")

    public String test1(Model model){
        model.addAttribute("msg","ControllerTest1");
        return "test";
        SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd  HH:mm:ss");
        simpleDateFormat.format();
    }
}
